package org.huntaway.kernel.net;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

public class URLReader {
	public static void main(String[] args) throws Exception {
		URL web = new URL("http://166.111.7.250:2222/");
		BufferedReader in = new BufferedReader(new InputStreamReader(
				web.openStream()));
		String inputLine;
		while ((inputLine = in.readLine()) != null)
			System.out.println(inputLine);
		in.close();
	}
}
